1 package net.sf.mmapps.applications.developer.dialog; 2 3 /*** 4 * @author Kees Jongenburger 5 * @version $Id: UserPasswordDialog.java,v 1.1.1.1 2004/02/06 08:44:07 keesj Exp $ 6 **/ 7 public class UserPasswordDialog extends DefaultDialog { 8 public UserPasswordDialog(java.awt.Frame parent,String name, boolean modal){ 9 super(parent,modal,"login to cloud " + name); 10 addInput("user"); 11 setInput("user","admin"); 12 addInput("password"); 13 setInput("password","admin2k"); 14 setCancelLabel("anon"); 15 } 16 17 18 public String getUserName(){ 19 return getInput("user"); 20 } 21 22 public String getPassword(){ 23 return getInput("password"); 24 } 25 }